package com.week2.day01;

public class Homework1 {
    public static void main(String[] args) {
        Warrior warrior = new Warrior();            //战士类
        System.out.println(warrior.toString());     //查看各项属性
        warrior.normalAttack();                     //普通攻击
        warrior.heroicStrike();                     //英勇打击
        warrior.injured();                          //受到伤害
        warrior.heroicStrike();                     //英勇打击
        warrior.injured();                          //受到伤害
        warrior.heroicStrike();                     //英勇打击
    }
}
